package com.xxl.job.executor.service;

import com.xxl.job.admin.core.model.XxlJobInfo;

import java.util.List;

/**
 * <pre>
 *
 * @description
 * @author wangqq
 * @email wangqq65@gdii-yueyun.com
 * @since 2022/11/2 16:32
 * @copyright 广东美云智数科技有限公司
 * </pre>
 */
public interface JobInfoService {

    /**
     * getJobInfo.
     *
     * <p>根据执行器id，jobHandler名称查询任务列表(模糊查询).
     *
     * @author wangqq65
     * @since 2022/11/2 16:32
     * @param jobGroupId
     * @param executorHandler
     * @return 
     */
    List<XxlJobInfo> getJobInfo(Integer jobGroupId, String executorHandler);

    /**
     * addJobInfo.
     *
     * <p>注册一个任务.
     *
     * @author wangqq65
     * @since 2022/11/2 16:37
     * @param xxlJobInfo
     * @return
     */
    Integer addJobInfo(XxlJobInfo xxlJobInfo);
}
